﻿<%@ Control Language="C#" AutoEventWireup="true" Inherits="NopSolutions.NopCommerce.Web.Modules.DeliveryControl"
    CodeBehind="Delivery.ascx.cs" %>
<div class="checkout-data">
    <div class="shipping-options">
        <asp:Panel runat="server" ID="phSelectDelivery">
            <asp:DataList runat="server" ID="dlShippingOptions" 
              onitemdatabound="dlShippingOptions_ItemDataBound">
                <ItemTemplate>
                    <div class="shipping-option-item">
                        <div class="option-name">
                            <nopCommerce:GlobalRadioButton runat="server" ID="rdShippingOption" 
                                GroupName="shippingOptionGroup" CssClass="deliveryoption" AutoPostBack="true" 
                                OnCheckedChanged="rdShippingOption_OnCheckedChanged"/>
                            <%#Server.HtmlEncode(Eval("DeliveryName").ToString()) %>&nbsp;-&nbsp;<%#PriceHelper.FormatPrice((decimal)Eval("Price"))%>
                            <asp:HyperLink ID="hlDescription" runat="server" style="color:#0069bd; text-decoration:none; cursor:pointer;">(Подробнее)</asp:HyperLink>
                            <div ID="divDescription" runat="server" style="display:none;"></div>
                            <asp:HiddenField ID="hfDeliveryId" runat="server" Value='<%# Eval("DeliveryId") %>' />
                        </div>
                    </div>
                </ItemTemplate>
            </asp:DataList>
        </asp:Panel>
        <div class="clear">
        </div>
        <div class="error-block">
            <div class="message-error">
                <asp:Literal runat="server" ID="lDeliverysError" EnableViewState="false"></asp:Literal>
            </div>
        </div>
    </div>
</div>
